package com.cskaoyan.chapter0501.chapter050108;

/**
 * @Author:WalterChan
 * @Decription:Person
 * @Date Created in 2024-05-21-20:31
 */
public abstract class Person {

    private String name;
    //定义构造器，规定所有继承的类，都必须有name；
    public Person(String name) {
        this.name = name;
    }

    //定义抽象方法
    public abstract String getDescription();

    public String getName() {
        return name;
    }
}
